﻿using MediatR;
using RBAC.Domain;
using RBAC.Domain.Service.Impl;
using RBAC.Domain.Service.Interfae;
using RBACDuYaJun.Api.Appliction.Command.UserCommand;
using RBACDuYaJun.Api.Dtos;
using System.Security.Claims;

namespace RBACDuYaJun.Api.Appliction.CommandHandlers.UserHanders
{
    //public class LoginCommandHandler : IRequestHandler<LoginCommand, UserInfo>
    //{
    //    private readonly IUserService _userService;
    //    public LoginCommandHandler(IUserService userService)
    //    {
    //        _userService = userService;
    //    }

    //    public async Task<UserInfo> Handle(LoginCommand request, CancellationToken cancellationToken)
    //    {
    //        return await _userService.Logain(request.Uname, request.Upwd);
    //    }
    //}
}
